﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using ThietBiSo.LinQDB;

namespace ThietBiSo.Models
{
    public class MThongKe
    {
        private _24hmuaonlineDataContext context = new _24hmuaonlineDataContext();
        public List<spThongKeResult> FindAll()
        {
            var tk = from tb in context.spThongKe()
                     select new spThongKeResult
                     {
                         HomNay = tb.HomNay,
                         HomQua = tb.HomQua,
                         TuanNay = tb.TuanNay,
                         TuanTruoc = tb.TuanTruoc,
                         ThangNay = tb.ThangNay,
                         ThangTruoc = tb.ThangTruoc,
                         TatCa = tb.TatCa
                     };
            return tk.ToList();
        }
    }
}